package demo18Package;

import java.io.Serializable;


public class demo18Person implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private String name;
//	private static int age;
//	private transient int age;
	private int age;
	
	
	@Override
	public String toString() {
		return "demo18Person [name=" + name + ", age=" + age + "]";
	}

	public demo18Person() {
		super();
	}

	public demo18Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	
}
